Identifications Endpoint
Endpoint
GET https://app.trustchex.com/api/v1/identifications/{id}
Add the API key as x-api-key
in the header.
JavaScript Fetch Example
fetch(`https://app.trustchex.com/api/v1/identifications/{id}`, {
method: 'GET',
headers: {
'x-api-key': 'YOUR_API_KEY_HERE'
}
})
.then(response => {
if (!response.ok) {
throw new Error('Network response was not ok ' + response.statusText);
}
return response.json();
})
.then(data => {
console.log('Identification:', data);
})
.catch(error => {
console.error('There was a problem with the fetch operation:', error);
});
Successful Response
{
"id": "{id}",
"status": "IN_MANUAL_REVIEW"
}
Statuses
The valid statuses are:
IN_AUTOMATIC_REVIEW
: The identification is currently being reviewed automatically by the system.IN_MANUAL_REVIEW
: The identification requires manual review by a human reviewer.APPROVED
: The identification has been reviewed and approved.REJECTED
: The identification has been reviewed and rejected.RESUBMISSION_REQUIRED
: The identification requires resubmission due to incomplete, incorrect or outdated information.
Important Notes
- Ensure that your application prevents the user from proceeding unless the API returns an
APPROVED
status. - Every time the user opens the application, check the latest status by calling the same endpoint.